﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MODEL;
using DAL;
namespace BLL
{
    public class BllDic
    {
        public int IsExist(Dic dic)
        {
            return new DalDic().IsExist(dic);
        }
        public int Insert(Dic dic)
        {
            return new DalDic().Insert(dic);
        }
        public List<Dic> GetAll()
        {
            return new DalDic().GetAll();
        }
        public List<Dic> GetByKey(string key)
        {
            return new DalDic().GetByKey(key);
        }
        public int Delete(int id)
        {
            return new DalDic().Delete(id);
        }

        public List<Dic> GetByPY(string namePY)
        {
            return new DalDic().GetByPY(namePY);
        }

        public Dic GetById(int id)
        {
            return new DalDic().GetById(id);
        }

        public int Update(Dic dic)
        {
            return new DalDic().Update(dic);
        }
    }
}
